package com.sba.core.service;

import org.springframework.data.domain.Page;

import com.sba.core.domain.Region;

/**
 * 
 * @author feiliming
 *
 */
public interface RegionService extends BaseService<Region> {

	Region getById(Long id);
	
	Page<Region> getRegions(int limit, int offset);
	Page<Region> getRegionsByNameLike(String name, int limit, int offset);
	
	Page<Region> getRegionsByParentId(Long parentId, int limit, int offset);
	Page<Region> getRegionsByparentIdAndNameLike(Long parentId, String name, int limit, int offset);
	
	Page<Region> getRegionsByRegionType(String regionType, int limit, int offset);
	Page<Region> getRegionsByRegionTypeAndNameLike(String regionType, String name, int limit, int offset);
	
	//批量删除
	void delete(String ids);
}
